<?php 
/* SVN FILE: $Id$ */
/* Cambio Test cases generated on: 2009-03-25 04:03:17 : 1237970897*/
App::import('Model', 'Cambio');

class CambioTestCase extends CakeTestCase {
	var $Cambio = null;
	var $fixtures = array('app.cambio', 'app.user', 'app.gruponuevo', 'app.grupoviejo');

	function startTest() {
		$this->Cambio =& ClassRegistry::init('Cambio');
	}

	function testCambioInstance() {
		$this->assertTrue(is_a($this->Cambio, 'Cambio'));
	}

	function testCambioFind() {
		$this->Cambio->recursive = -1;
		$results = $this->Cambio->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Cambio' => array(
			'cambio'  => 1,
			'user_id'  => 1,
			'gruponuevo_id'  => 1,
			'grupoviejo_id'  => 1,
			'fecha'  => '2009-03-25',
			'duracion'  => 1
			));
		$this->assertEqual($results, $expected);
	}
}
?>